********************************************************************************
* Run this file to replicate all tables and figures. This file also produces
* a log file, "replication.log."
********************************************************************************

capture log close

log using replication.log, replace

set more off

set scheme s1manual

********************************************************************************
* Article figures and tables
********************************************************************************

forvalues i=1(1)4 {
	di " "
	di  "{red:Starting figure`i'.do}"
	di " "
	if `i'==4 {
		do "_code/figure`i'a.do"
		do "_code/figure`i'b.do"
	}
	if `i' != 4 {
		do "_code/figure`i'.do"
	}
	di " "
	di  "{red:Starting table`i'.do}"
	di " "
	do "_code/table`i'.do"
}

********************************************************************************
* Appendix figures and tables
********************************************************************************

forvalues i=2(1)5 {
	di " "
	di  "{red:Starting figureA`i'.do}"
	di " "
	do "_code/figureA`i'.do"
}

forvalues i=1(1)17 {
	di " "
	di  "{red:Starting tableA`i'.do}"
	di " "
	do "_code/tableA`i'.do"
}

********************************************************************************
* Close log file
********************************************************************************

log close

********************************************************************************
* End
********************************************************************************
